import { BoxGeometry, MeshLambertMaterial, Group, Mesh } from "three";
import { renderColorMap } from "./colorMap.js";
// 创建两个网格模型
const geometry = new BoxGeometry(20, 20, 20);
const material = new MeshLambertMaterial({ color: renderColorMap() });
const material2 = new MeshLambertMaterial({ color: renderColorMap() });
// 创建层级树
const group = new Group();
const mesh1 = new Mesh(geometry, material);
const mesh2 = new Mesh(geometry, material2);
mesh2.translateX(40);
group.add(mesh1);
group.add(mesh2);
console.log(group.children);
export const meshGeometry = group;
